<template>
  <p>{{ info }}</p>
  <p>age 的值是：{{ age }}</p>
  <button @click="age++">age++</button>
</template>

<script setup>
import { reactive, toRefs } from 'vue'

const info = reactive({
  name: 'zs',
  age: 18
})

const { age } = toRefs(info)
</script>

<style scoped></style>
